FROM nginx:stable-alpine-slim

WORKDIR /app


COPY docker-entrypoint.sh /
COPY my.cnf /etc/mysql/
COPY mariadb-server.cnf /etc/my.cnf.d/
COPY lpszoj.conf /etc/nginx/conf.d/

ENTRYPOINT ["sh","/docker-entrypoint.sh"]

EXPOSE 3306
# 定义容器启动时执行的命令
#CMD ["nginx"]